#ifndef HALMAZ_H
#define HALMAZ_H

#include <iostream>

class halmaz
{
   public:
       halmaz();
       ~halmaz();
       halmaz(const halmaz& other);
       halmaz& operator=(const halmaz& other);
       friend std::ostream& operator<<(std::ostream& outstream, const halmaz& h);

       void betesz(int e);
       void kivesz(int e);
       bool ures();
       bool eleme(int e) const;
       halmaz metszet(const halmaz &h1, const halmaz &h2);

       enum exceptions {NO_ELEM_IN, JUST_EXAMPLE_EXCEPTION};
       int elemszamfv() const;
       void elemek();
   protected:
   private:
       int elemszam;
       int *dintomb;
};
#endif // HALMAZ_H
